projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7ca3df
)
(ido-find-file-in-dir): Don't signal an error for empty directories.
author
Juanma Barranquero
<lekktu@gmail.com>
Wed, 20 Jun 2007 15:17:17 +0000
(15:17 +0000)
committer
Juanma Barranquero
<lekktu@gmail.com>
Wed, 20 Jun 2007 15:17:17 +0000
(15:17 +0000)
lisp/ido.el
patch
|
blob
|
history
diff --git
a/lisp/ido.el
b/lisp/ido.el
index 5a7be3e5ae6bef2790aac0931af184c6923dc4d5..0808075b495ee4f8e275832976300f7243aa8a55 100644
(file)
--- a/
lisp/ido.el
+++ b/
lisp/ido.el
@@
-3994,8
+3994,7
@@
For details of keybindings, see `ido-switch-buffer'."
(defun ido-find-file-in-dir (dir)
"Switch to another file starting from DIR."
(interactive "DDir: ")
- (if (not (equal (substring dir -1) "/"))
- (setq dir (concat dir "/")))
+ (setq dir (file-name-as-directory dir))
(ido-file-internal ido-default-file-method nil dir nil nil nil 'ignore))
;;;###autoload